﻿Imports System.Data.SqlClient
Imports DAO
Imports DTO
Public Class LoaiBoKichDienBUS
    Private laqDAO As LoaiBoKichDienDAO

    Public Sub New()
        laqDAO = New LoaiBoKichDienDAO()
    End Sub

    Public Function GetData()
        Return laqDAO.GetData()
    End Function

    Public Function TestDB(ByVal sql As String) As Boolean
        Return laqDAO.TestDB(sql)
    End Function

    Public Function InsertUpdateLoaiBoKichDien(ByVal laq As LoaiBoKichDienDTO, ByVal flagIsUp As Boolean) As Boolean
        Return laqDAO.InsertUpdateLoaiBoKichDien(laq, flagIsUp)
    End Function

    Public Function DeleteLoaiBoKichDien(ByVal MLoai As LoaiBoKichDienDTO) As Boolean
        Return laqDAO.DeleteLoaiBoKichDien(MLoai)
    End Function
    
End Class
